<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" 
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>人物管理系统</title>
		<link th:href="@{/css/bootstrap.css}" rel="stylesheet" type="text/css" />
		<script type="text/javascript" th:src="@{/webjars/jquery/3.2.1/jquery.min.js}"></script>
		<script th:inline="javascript">
			$(function(){
				alertMSG();
			})
			function alertMSG(){
			    var msg = [[${MSG}]];
			    if(msg!=null){
			    	 alert(msg);
			    }
			}
        </script>
</head>
<body>
  <div id="content_add" class="content_top" align="center">	
<div class="row">
	<div class="col-sm-12">
	<form class="form-horizontal" th:action="@{/password}" th:object="${user}" method="post">	
  				<input type="hidden" name="id" id="id" th:value="*{id}"/>	
		  		<div class="form-group">
				    <label class="col-sm-2 control-label">新密码(<font color="red">*</font>):</label>
				    <div class="col-sm-5">
	   					<input class="form-control" type="password" id="password" name="password" th:value="*{password}" />
			    	</div>
			    	<div class="col-sm-5" style="color:red;text-align:left"  th:errors="*{password}"></div>
		    	</div>
		  		<div class="form-group">
				    <label class="col-sm-2 control-label">确认密码(<font color="red">*</font>):</label>
				    <div class="col-sm-5">
	   					<input class="form-control" type="password" id="password2" name="password2" th:value="*{password2}"/>
			    	</div>
			    	<div class="col-sm-5" style="color:red;text-align:left"  th:errors="*{password2}"></div>
		    	</div>
			  	<div class="form-group">
				    <label class="col-sm-2 control-label"></label>
				    <div class="col-sm-5">
				   		<button type="submit" class="btn btn-success  btn-sm"  style="width:80px" >确定</button> &nbsp; &nbsp;
						<button type="reset" class="btn btn-default  btn-sm"  style="width:80px" >重置</button>
			    	</div>
		    	</div>
			</form>
    </div>
  </div>
</div>
</body>
</html>